#ifndef __TOOL_HPP__
#define __TOOL_HPP__

#include <cstdint>
#include <fstream>

using namespace std;

void aes_cbc_dec(uint8_t* key, uint8_t* iv, uint8_t* in, uint32_t len, uint8_t* out);
void aes_cbc_enc(uint8_t *key, uint8_t *iv, uint8_t *in, uint32_t len, uint8_t *out);
uint16_t get16(ifstream& stream);
uint32_t get32(ifstream& stream);
uint64_t get64(ifstream& stream);
uint32_t add_padding(uint32_t value, uint32_t padding);

#endif //__TOOL_HPP__
